home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
dev
/
c
/
AmiVoGL_MDEV.lha
/
drivers
/
ibmpc
/
pc_locat.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-18
|
348b
|
32 lines
#include "vogl.h"
static int have_mouse = 0;
extern int ismouse(), readmouse();
pc_locinit(x, y)
int x, y;
{
if ((have_mouse = ismouse(x, y)))
showmouse();
return(0);
}
int
pc_locator(x, y)
int *x, *y;
{
int ix, iy, b;
if (!have_mouse)
return (-1);
b = readmouse(&ix, &iy);
*x = ix;
*y = vdevice.sizeSy - iy;
return (b);
}